﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:b="clr-namespace:Boggle;assembly=Boggle">
    <DataTemplate DataType="{x:Type b:BoggleGrid}">
        <ItemsControl MaxWidth="320" MaxHeight="320" ItemsSource="{Binding Dice}">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid Columns="{Binding GridWidth}" Rows="{Binding GridHeight}" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
    </DataTemplate>
</ResourceDictionary>